isConnected

abstract fun isConnected(): Boolean

Checks if the player currently has active Internet connectivity.

This method attempts to determine if the device can access the wider Internet. The check might involve verifying network interface status (e.g., Wi-Fi or Ethernet being connected and having an IP address) and potentially testing reachability to a general internet endpoint or specific RevelDigital services.

A true result suggests that the player can communicate online, which is typically required for features like content updates, remote commands, and analytics reporting. A false result indicates that the player may be operating in an offline mode, potentially with limited functionality.

The status reflects the connectivity state at the time of the call or based on the last known state if updated periodically. For continuous monitoring of connectivity changes, consider using addConnectivityListener.

Return

true if the player is deemed to have active Internet connectivity, false otherwise (e.g., no active network interface, or internet resources are unreachable).

See also